.grid {
    display: flex;
    flex-wrap: wrap;
}

.ingredient-group {
    flex: 1 1 48%; /* 占据48%宽度 */
    margin: 10px;
    border: 1px solid #ccc;
    padding: 10px;
    box-sizing: border-box;
}

.validationError {
    color: red;
}